package com.foreknow.demo6;

/**
 * @author shkstart
 * @create 2021-07-27 13:47
 */
public class PersonImpl extends Person {
    @Override
    public boolean register(String ruser, String rpassword) {
        return false;
    }

    @Override
    public boolean login(Person person) {
        return false;
    }


    @Override
    public Person search(String id) {
        return null;
    }

    @Override
    public Person[] searchAll() {
        return new Person[0];
    }

    @Override
    public int deleteById(String id) {
        return 0;
    }

    public static void main(String[] args) {
        Person person=new PersonImpl();
        boolean isRight= person.login(new PersonImpl());
        if(isRight){
            System.out.println("登录成功....");
        }else {
            System.out.println("登录失败");
        }

        int i=person.deleteById("200");
        if(i==1){
            System.out.println("删除成功");
        }else {
            System.out.println("error");
        }
    }

}
